import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/ragular',
    name: 'ragular',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( /* webpackChunkName: "about" */ '../views/ragular.vue')
  },
    {
      path: '/ctxt',
      name: 'ctxt',
      component: () => import('../views/ctxt.vue')
    },
    {
      path: '/arcade',
      name: 'Arcade',
      component: () => import('../views/arcade.vue')
    }, {
      path: '/classic',
      name: 'Classic',
      component: () => import('../views/classic.vue')
    }, {
      path: '/limitTime',
      name: 'LimitTime',
      component: () => import('../views/limitTime.vue')
    }, {
      path: '/extremeSpeed',
      name: 'ExtremeSpeed',
      component: () => import('../views/extremeSpeed.vue')
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('../views/my.vue')
    },
  {
      path: '/number',
      name: 'number',
      component: () => import('../views/number.vue')
    }
]

const router = new VueRouter({
  routes
})

export default router
